import type { App } from 'vue'
// 皮肤mixin
import skinMixIn from '@/common/mixin/skinMixIn'
// 全局常量的mixin，所有页面中注入如env中的SHOW_KEFU等常量
import globalMixIn from '@/common/mixin/globalMixIn'
// #ifdef MP-WEIXIN||MP-ALIPAY
// 小程序mixin
import mpappMixIn from '@/common/mixin/mpappMixIn'
import localeMixIn from '@/common/mixin/localeMixIn'
// #endif

// #ifdef PRIVATE || SUBSCRIPTION
// 公众号与私域mixin
import mpShareMixIn from '@/common/mixin/mpShareMixIn'
// #endif

export default (app: App) => {
	app.mixin(skinMixIn)
	app.mixin(globalMixIn)
	
	// #ifdef MP-WEIXIN||MP-ALIPAY
	app.mixin(mpappMixIn)
	// app.mixin(localeMixIn)//manifest中回退语言选择中文，uni会在编译时自动将页面标题替换翻译，无需再使用该mixin
	// #endif
	
	// #ifdef PRIVATE || SUBSCRIPTION
	app.mixin(mpShareMixIn)
	// #endif
}